

package com.lglbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class StorageController {
	@Autowired
	private StorageMapper storageMapper;
	@PostMapping(value = "/storage/{code}/{count}")
	public boolean storage(@PathVariable("code") String code, @PathVariable("count") int count) {
		return storageMapper.update(count,code);
	}
}
